#!/bin/bash
workdir=(
"/mnt/ylmall/log/alibaba"
"/mnt/ylmall/log/db"
"/mnt/ylmall/log/transformer"
"/mnt/ylmall/log/alinotify_order"
"/mnt/ylmall/log/alinotify_product"
"/mnt/ylmall/log/coupon"
"/mnt/ylmall/log/crontab"
"/mnt/ylmall/log/ip"
"/mnt/ylmall/log/notifies"
"/mnt/ylmall/log/orders"
"/mnt/ylmall/log/push"
"/mnt/ylmall/log/sms"
"/mnt/ylmall/log/tbk"
"/mnt/ylmall/log/test"
"/mnt/ylmall/log/upstream_notifies"
"/mnt/ylmall/log/user"
"/mnt/ylmall/Task/log/"
)
day=5
for wdir in ${workdir[@]}
  do
    echo enter $wdir
    echo delete `find $wdir -name '*.log' -mtime +$day`
    `find $wdir -name '*.log' -mtime +$day -exec rm -rf {} \;`
  done
